#!/bin/bash

# 设置环境变量
# unset PYTHONPATH
# source /home/ma-user/work/users/wty/init_wty.sh
# export PYTHONPATH="/home/ma-user/work/users/wty/MindSpeed-LLM:/home/ma-user/work/users/wty/MindSpeed-LLM/third_pkgs/Megatron-LM:$PYTHONPATH"
# export PYTHONPATH="/home/ma-user/work/users/wty/MindSpeed-LLM:$PYTHONPATH"
# soruce 
# # source /home/ma-user/work/users/qzh/init_py311.sh
# # source /usr/local/Ascend/ascend-toolkit/set_env.sh

# #/home/ma-user/work/install/cann_8.0.RC3.20
# install_path=/usr/local/Ascend/
# source $install_path/ascend-toolkit/set_env.sh
# source $install_path/nnal/atb/set_env.sh
# source $install_path/mindie/set_env.sh
#  export TORCH_COMPILE_DEBUG=1
# export TORCHDYNAMO_DISABLE=1
# # source $install_path/nnal/atb/set_env.sh
# # source $install_path/mindie/set_env.sh
# export HYDRA_FULL_ERROR=1
# export LD_LIBRARY_PATH=/usr/local/Ascend/driver/lib64/driver/:$LD_LIBRARY_PATH
# export RAY_DEDUP_LOGS=0
# export GLOO_SOCKET_IFNAME=docker0

source /home/ma-user/work/users/wty/MindSpeed-LLM/set_env.sh
# export ASCEND_RT_VISIBLE_DEVICES=4,5,6,7
log_path=$(pwd)/test_log.log
echo $log_path
python -u test_actor.py &> $log_path
# python -u test_actor.py --config-name grpo_trainer_qwen25_7b
